import SvgIcon from '@/components/SvgIcon.vue';

// 注册到全局
export default {
  install: (app: any) => {
    app.component('svg-icon', SvgIcon);
  },
};

const requireAll = (requireContext: any) => requireContext.keys().map(requireContext);
const req = require.context('./svg', false, /\.svg$/);
requireAll(req);
